<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<a>选择你的课程</a>
<p align="center"><img th:src="@{/image/course1.png}"/></p>
<form  method="post" th:action="@{/course}" th:object="${message}" >
<h3>Choose your required course</h3>
      <div th:each="course : ${required}">
        <input name="courses" type="checkbox" th:value="${course.name}" />
        <span th:text="${course.name}">COURSE</span><br/>
      </div>
<h3>Choose your optional course</h3>
      <div th:each="course : ${option}">
        <input name="courses" type="checkbox" th:value="${course.name}" />
        <span th:text="${course.name}">COURSE</span><br/>
      </div>
      <button>提交</button>
</form>
</body>
</html>